<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
						<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
						 <a href="/admin/tasks/task/review" data-area='["80%","80%"]' class="btn btn-success  btn-dialog  {:$auth->check('tasks/task/review')?'':'hide'}" title="{:__('Review')}" ><i class="fa fa-sticky-note"></i> {:__('Review')}</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('integral/outtasks/edit')}"
                           data-operate-del="{:$auth->check('integral/outtasks/del')}"
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap">
		<fieldset>
			  <div class="row">
			    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
				<label for="name" class="control-label col-xs-4">周期</label>
				<div class="col-xs-8">
				 <input type="hidden" class="form-control operate" name="week.week-operate" data-name="week.week" value="like" readonly="" />
				 <input type="text" class="form-control" name="week.week" value="" placeholder="周期" id="week.week" data-index="2" />
				</div>
			   </div>  
			    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
				<label for="start_time" class="control-label col-xs-4">{:__('Start_time')}</label>
				<div class="col-xs-8">
				 <input type="hidden" class="form-control operate" name="week.start_time-operate" data-name="week.start_time" value="RANGE" readonly="" />
				 <input type="text" class="form-control datetimerange" name="week.start_time" value="" placeholder="{:__('Start_time')}" id="week.start_time" data-index="3" />
				</div>
			   </div>
			   <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
				<label for="name" class="control-label col-xs-4">{:__('Name')}</label>
				<div class="col-xs-8">
				 <input type="hidden" class="form-control operate" name="task.name-operate" data-name="task.name" value="like" readonly="" />
				 <input type="text" class="form-control" name="task.name" value="" placeholder="{:__('Name')}" id="task.name" data-index="2" />
				</div>
			   </div>   
				
			 
			   <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
				<label for="department" class="control-label col-xs-4">{:__('Department')}</label>
				<div class="col-xs-8">
				 <input type="hidden" class="form-control operate" name="week.department-operate" data-name="week.department" value="FIND_IN_SET" readonly="" />
				 <select class="form-control" name="week.department">
					 <option value="">选择</option>
					 {foreach name="groupdata" item="vo"}
                            <option value="{$key}"  <?php if("'".request()->get("department")."'" == "'".$key."'"){ echo 'selected';} ?> >{$vo}</option>
                      {/foreach}
				 </select>
				</div>
			   </div>	   
			  <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
				<label for="department" class="control-label col-xs-4">{:__('Type')}</label>
				<div class="col-xs-8">
				 <input type="hidden" class="form-control operate" name="task.type-operate" data-name="task.type" value="FIND_IN_SET" readonly="" />
				 <select class="form-control" name="task.type">
					 <option value="">选择</option>
					 {foreach name="typeList" item="vo"}
                            <option value="{$key}"  <?php if("'".request()->get("task.type")."'" == "'".$key."'"){ echo 'selected';} ?> >{$vo}</option>
                      {/foreach}
				 </select>
				</div>
			   </div>
		
			   <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
				<label for="status" class="control-label col-xs-4">周{:__('Status')}</label>
				<div class="col-xs-8">
				 <input type="hidden" class="form-control operate" name="week.status-operate" data-name="week.status" value="=" readonly="" />
				 <select class="form-control" name="week.status">
					 <option value="">选择</option>
					  {foreach name="statusList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                      {/foreach}
				 </select>
				</div>
			   </div>
			  
			   <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
				<div class="col-sm-8 col-xs-offset-4">
				 <button type="submit" class="btn btn-success" formnovalidate="">提交</button> 
				 <button type="reset" class="btn btn-default">重置</button> 
				</div>
			   </div>
			  </div>
        </fieldset>
    </form>
</script>